﻿namespace EasyUtils.Http
{
    /// <summary>
    /// 简单的访问Http帮助类
    /// </summary>
    public interface ISimpleHttpHelper
    {
        /// <summary>
        /// HttpGet访问，返回Json数据
        /// </summary>
        /// <typeparam name="T">Json数据的类型</typeparam>
        /// <param name="uri">目标地址</param>
        /// <returns>数据T</returns>
        T GetJsonData<T>(string uri);

        /// <summary>
        /// HttpGet访问，返回内容
        /// </summary>
        /// <param name="uri">目标地址</param>
        /// <returns>相应内容字符串</returns>
        string GetContent(string uri);
    }
}